package com.example.designer.decorator.decor;

import com.example.designer.decorator.Drinks;

/**
 * 装饰者抽象类
 */
public abstract class Condiments implements Drinks {

    private Drinks drinks;

    public Condiments() {
    }

    public Condiments(Drinks drinks) {
        this.drinks = drinks;
    }
    //获取装饰实例对象数据
    @Override
    public String describe() {
        return drinks.describe();
    }
    //获取装饰实例对象数据
    @Override
    public Integer price() {
        return drinks.price();
    }
}
